<?

function getHomepage($title= "", $content =""){
	if($title == "" && isset($_ENV['cTitle'])){
		$title = $_ENV['cTitle'];
	}
	$veranstaltungs_id = FileID::toOrdinal("veranstaltungen");
	$dozenten_id = FileID::toOrdinal("dozenten");
	$teilnehmer_id = FileID::toOrdinal("teilnehmer");
	$logout_id = FileID::toOrdinal("logout");
 $out = <<<EOT


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" dir="ltr">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Sommeruni Administration</title>
<link rel="stylesheet" media="screen" type="text/css" href="layout.css">
<link rel="stylesheet" type="text/css" media="all" href="datepicker/datepick.css" />
<script type="text/javascript" src="datepicker/datepick.js"></script>

</head>
<body>


<div id="wrapper">   
	<div class="dokuwiki">  
		<div class="head">
<div id="nav-menu" style="float:left;">
 <ul>
 <li><a href="?id0=$veranstaltungs_id">Veranstaltungen</a></li>
 <li><a href="?id0=$dozenten_id">Dozenten</a></li>
 <li><a href="?id0=$teilnehmer_id">Teilnehmer (TODO)</a></li>
 <li><a href="?">Modul 4</a></li>
 <li><a href="?">Modul 5</a></li>
 <li><a href="?id0=$logout_id">Abmelden</a></li>
 </ul>
 </div>
		</div>

		<div class="page">

<!-- CONTENT START --> 
<h1 style="text-align:center;">$title</h1>
$content
	
<!-- CONTENT END -->
		</div>	  
<br />
<br />
<br />
<br />

		<div class="stylefoot">
			<div class="meta">
		  <!-- left footer -->
				<div class="user">Bei Fragen bitte an Benjamin Eckstein wenden</div>
          
		  <!-- right footer -->
				<div class="doc"><a href="http://www.umingo.de">www.Umingo.de</a></div>
			</div>
		</div>

    <div class="clearer"></div>

    
</div>
<br />
<br />

</body>
</html>
EOT;
return $out;
}
?>